#pragma once

#include "RenderObject.h"
#include "PlanePart.h"

#include <fstream>

//axis aligned cube, for now


class Cube
	:public RenderObject
{
private:
	int maxx,minx,maxy,miny,maxz,minz;
	PlanePart data[6];

public:
	Cube(Vector3d position,int size);
	~Cube(void);
	TraceResult collision(const Ray &ray);
	bool collidePlane(Ray &ray,double x,double y,double z); 
};

